/**
 * PersonController.java
 *
 * @author: ZhuJiahui
 * @date: 2018/12/19 23:03
 */
package com.zhujiahui.springboot.controller;

import com.zhujiahui.springboot.service.PersonServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description:
 * @author: ZhuJiahui
 * @version: 1.0
 */
@RestController
public class PersonController {

    @Autowired
    protected PersonServiceImpl personService;

    @RequestMapping("/showPerson/{id}")
    public String selectUser(@PathVariable int id) {
        return this.personService.selectPerson(id).toString();
    }
}
